package com.bw.openfeign;


import com.bw.domain.Doctor;
import com.bw.domain.Register;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

import java.util.List;

//远程连接
@Component
@FeignClient(value = "bw-doctor")
public interface DoctorOpenfeign {

    @GetMapping("rapidConsultation/weCanTraceTheSymptomsToTheDoctor")
    List<Doctor> weCanTraceTheSymptomsToTheDoctor(@RequestParam String tag);

    @PostMapping("rapidConsultation/register")
    void register(@RequestBody Register register);

    @PostMapping("rapidConsultation/cancelRegister")
    void cancelRegister(@RequestBody Register register);

    @PostMapping("rapidConsultation/getRegisterData")
    Integer getRegisterData(@RequestBody Register register);

}
